package cn.thinkluck.pattern.decorator;

/**
 * 装饰器
 *
 * @Author liutao
 * @DateTime 2024/7/21 下午1:28
 */
public abstract class ComponentDecorator implements Component {
    //装饰对象
    private Component component;

    public ComponentDecorator(Component component) {
        this.component = component;
    }

    @Override
    public void operation() {
        component.operation();
    }
}
